package cn.myblog.ainblog.mapper;

import cn.myblog.ainblog.model.ArticleCategoryModel;
import cn.myblog.ainblog.model.CategoryModel;
import cn.myblog.ainblog.vo.ArticleAndCategoryVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Dovaior
 * @Description 博文和分类的关系表的Mapper
 * @create 2021-04-19 17:36
 **/
@Repository
public interface ArticleCategoryMapper extends BaseMapper<ArticleCategoryModel> {
    ArticleAndCategoryVO queryCategoryModelByArticleId(String articleId);
    List<String> queryArticleIdByCategoryId(String categoryId);
}
